<div style="margin: 15px 0px 0px 15px">
	<h3>Cập nhật thông tin loại thẻ</h3><hr />
	<div style="margin-top: 30px;  margin-left: 60px;">
	<div style="background: yellow;">
		<?php echo validation_errors();?>	
	</div>
		<?php $attrs = array('class'=>'frm_update_cardtype', 'id'=>'frm_update_cardtype')?>
		<?php echo form_open_multipart(base_url().'index.php/cardtype/update/'. $ct['id'], $attrs)?>
        <table class="form">
            <input type ="hidden" name ="id" value ="<?php echo $ct['id'];?>">
            <tr>
                <td class="label">Tên loại thẻ:</td>
                <td><input type='text' name='name' value='<?php echo $ct['name'];?>'></td>
            </tr>

            <tr>
                <td class="label">Mô tả:</td>
                <td>
                    <textarea name="description" id = "description" style='border: 1px solid #BDC7D8;padding:3px;width: 500px; height:200px;'/><?php echo $ct['description'];?></textarea>
                </td>
            </tr>
             <tr>
            <td class="label">Status:</td>       
            <td>
                <select name="status" id="status" style = "width:250px">         
                    <option value="active">active</option>
                    <option value="deactive" <?php if($ct['status'] == "deactive"){?> SELECTED <?php }?>>deactive</option>
                </select>
            </td>
        </tr>
            <input type="hidden" value="Update" name="update">
            <td>
                <button type="submit" class="button" style="border: none;background: none"/>
                <span class="button_left button_save"></span>
                <span class="button_middle">Save</span>
                <span class="button_right"></span>
                </button>
                <a class="button" onclick="history.go(-1);">
                    <span class="button_left button_cancel"></span>
                    <span class="button_middle">Cancel</span>
                    <span class="button_right"></span>
                </a>
            </td>
            </tr>    

        </table>
    </form>
	</div>
</div>